package site.luojie.netty.rpc.consumer;

import site.luojie.netty.rpc.common.UserService;

/**
 * @author jie.luo
 * @since 2020-08-13
 */
public class CustomerBootstrap {
    public static void main(String[] args) throws Exception {

        RpcConsumerZk.loadProvider("test_server:2181");

        while (true) {

            UserService userService = RpcConsumerZk.routeServer();
            System.out.println(userService.sayHello("那你"));

            Thread.sleep(1000);
        }

    }
}
